package com.ecnu.jiagou.damai.mapper;

import java.util.List;

import com.ecnu.jiagou.damai.entity.Order;
import com.ecnu.jiagou.damai.entity.Product;
import com.ecnu.jiagou.damai.entity.Ticket;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper {

    Ticket getTicketById(Integer ticketid);
    
    boolean updateTicket(Ticket ticket);

    boolean addOrder(Order order);

    List<Product> getProduct(Long userid);

    boolean deleteOrder(String orderid);

}
